const mongoose = require("mongoose");
const storesSchema = new mongoose.Schema({
    username:String,
    password:String,
    imagePath:String,
    name:String,
    //商家状态值，默认为解冻state=unfreeze
    //冻结为 state=freeze
    state:String,
})
//参数一：当前数据模型的名称
//参数二：对应的数据结构的名称
//参数三：数据库中所对应的数据集合的名称
mongoose.model("storesModel",storesSchema,"stores")